const controller = require("../controllers/houses.controller");
module.exports = app => {
  const router = require("express").Router();


  router.get("/app/getDetail", controller.getDetail);
  router.post("/app/list", controller.list);



  router.post("/admin/create", controller.create);
  router.post("/admin/update", controller.update);
  router.get("/admin/delete", controller.del);
  router.post("/admin/list", controller.list);
  router.get("/admin/getDetail", controller.getDetail);

  app.use('/api/houses', router);
};
